
const countReducer = (state = 0 , action) => {
  console.log('countReducer触发了')
   switch(action.type){
     case 'add':
       return state + 1;
      case 'update':
        return action.newCount
      default: 
        return state + 2;
   }
}
  
export default countReducer